# Author: Eric
import django_filters
from .models import *


class OptionFilter(django_filters.rest_framework.FilterSet):
    """
    供应商的过滤类
    """
    key = django_filters.CharFilter(field_name='selfkey__value',help_text="上级选项")
    class Meta:
        model = Option
        fields = ['key']
